package org.news.web.domain;

import org.dromara.common.mybatis.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serial;

/**
 * 通知功能对象 notifications
 *
 * @author Gu Ci
 * @date 2024-04-03
 */
@Data
@TableName("notifications")
public class Notifications{

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 通知ID
     */
    @TableId(value = "notification_id",type = IdType.AUTO)
    private Long notificationId;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 通知类型，系统通知或消息通知

     */
    private Long notificationType;

    /**
     * 通知内容
     */
    private String content;

    /**
     * 是否已读
     */
    private Integer isRead;

    /**
     * 记录通知时间
     */
    private Date creationTime;


    /**
     * 记录更新时间
     */
    private Date updateTime;

}
